home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-01-20 | 2.1 KB | 42 lines | [TEXT/MPS ] |
- ================== File Grep-MJS.h; Line 80 ==================
- /* MJS: OSreset normally called before abort, apparently leftover from CP/M */
- OSreset() { printf("# %s almost done... ", ToolName()); };
- ================== File Grep.c; Line 4 ==================
- /* MJS: include "argsim.h" not needed */
- ================== File Grep.c; Line 7 ==================
- #include <CursorCtl.h> /* MJS: added for rotating cursor */
- ================== File Grep.c; Line 11 ==================
- #define Rotation 2 /* MJS: added for rotating cursor */
- ================== File Grep.c; Line 15 ==================
- /* MJS: add a global so argv[0] can be used in error messages */
- char * FullToolName;
- ================== File Grep.c; Line 29 ==================
- /* MJS: first thing, load tool name global */
- FullToolName = argv[0];
- ================== File Grep.c; Line 88 ==================
- /* MJS: this is a good place to rotate cursor */
- SpinCursor(Rotation);
- ================== File Grep.c; Line 133 ==================
- /* MJS: Modified output to be more MPW-useful */
- ================== File Grep.c; Line 152 ==================
- /* MJS: use argv[0] instead of "grep" */
- fprintf(stderr, "usage: %s [-cefhlnvy] [expression] ,<files...>\n", ToolName()) ;
- ================== File Grep.c; Line 161 ==================
- /* MJS: Indicate completion, exit without error */
- printf("# %s done\n", ToolName());
- ================== File SonOfGrep.make; Line 6 ==================
- # MJS: See Grep-MJS.h for some general comments
- ================== File Tools.c; Line 6 ==================
- /* MJS: This function returns a char pointer */
- char * amatch(lin,pat,boln)
- ================== File Tools.c; Line 491 ==================
- /* MJS: this function retrieves tool name */
- char * ToolName() {
- ================== File Tools.h; Line 3 ==================
- /* #define DEBUG 1 MJS: don't debug */
- ================== File Tools.h; Line 69 ==================
- /* MJS: This function returns a char pointer */
- extern char * amatch() ;
- ================== File Tools.h; Line 85 ==================
- extern char *FullToolName; /* MJS: global added to use argv[0] */
- extern char *ToolName();